﻿<div ng-controller="messageController">
    <div class="bg-light lter b-b wrapper-sm">
        <h1 class="m-n font-thin h4">消息 <span class="posit">( {{totalNumber}} )</span></h1>
    </div>
    <div class="wrapper-sm">
        <div class="row">
            <div class="col-sm-12">
                <ul class="blog-post no-padder">
                    <!--<li class="panel" ng-repeat="item in dataArrList | orderBy:'-Time' track by $index">-->
                    <li class="panel" ng-repeat="item in messageList | orderBy:'-time'  track by $index">
                        <div class="wrapper-sm">
                            <div class="text-grays">
                                <span>
                                    <i class="fa fa-file-text-o text-grays"></i>
                                    {{item.type}}
                                </span>

                                <!-- <span ng-if="item.type==0">
                                    <i class="fa fa-volume-up text-grays"></i>
                                    系统消息
                                </span>
                                <span ng-if="item.type==3">
                                    <i class="fa fa-rmb text-grays"></i>
                                    支付消息
                                </span>
                                <span ng-if="item.type==2">
                                    <i class="fa fa-file-text-o text-grays"></i>
                                    报价消息
                                </span> -->
                                <i class="fa fa-clock-o text-grays m-l-lg"></i> {{item.time}}
                                <a href class="m-r pull-right" title="删除" ng-click="Thisdel(item.id)">x</a>
                            </div>
                            <div class="line line-lg b-b b-light"></div>
                            <h5 class="l-h-14">{{item.content}}</h5>
                        </div>
                    </li>

                    <li class="panel" ng-if="totalNumber==0">
                        <div class="wrapper-sm">
                            <h4 class="l-h-14">暂无消息</h4>
                        </div>
                    </li>

                </ul>
                <button ng-click="Alldel()" title="清空消息" ng-disabled="allDis" ng-class="{'disabled':allDis}" class="pull-right btn btn-sm m-t-md m-b-md btn-default btn-addon"><i class="fa fa-trash-o"></i>清空消息</button>

                <!-- <div class="pagination">
                    <ul class="pagination-sm m-t-none m-b pagination ng-isolate-scope ng-valid">
                        <li ng-class="prevPageDisabled()">
                            <a href ng-click="prevPage()"> « 上一页</a>
                        </li>
                        <li ng-repeat="n in pageNum" ng-class="{active: n == currentPage}" ng-click="setPage(n)">
                            <span class="curpoint">{{n+1}}</span>
                        </li>
                        <li ng-class="nextPageDisabled()">
                            <a href ng-click="nextPage()">下一页 »</a>
                        </li>
                    </ul>
                </div> -->
                <!-- {{currentPage}} -->
                <ul uib-pagination items-per-page="max" ng-change="pageChanged(currentPage)" total-items="totalItems" ng-model="currentPage" class="pagination-sm" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;">
                   
                </ul>

                <!-- <div class="text-center m-b-md">
                    <pagination items-per-page="5"
                                ng-change="pageChanged()"
                                total-items="totalNumber"
                                ng-model="page"
                                class="pagination-sm"
                                previous-text="&lsaquo;"
                                next-text="&rsaquo;"
                                first-text="&laquo;"
                                last-text="&raquo;">
                    </pagination>
                </div> -->

            </div>
        </div>
    </div>
</div>